package com.csnf.demo1.service.impl;

import com.csnf.demo1.mapper.BookMapper;
import com.csnf.demo1.pojo.user;
import com.csnf.demo1.service.BookService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


import com.csnf.demo1.pojo.Book;

import java.util.List;


@Service
public class BookServiceImpl implements BookService {
    @Autowired
    BookMapper bookMapper;

    @Override
    public List<Book> findAllBook() {
        return bookMapper.findAllBook();
    }

    @Override
    public Integer deleteById(Integer id) {
        return bookMapper.deleteById(id);
    }


    @Override
    public List<user> findAllUser() {    //4.8号晚自习作业
        return bookMapper.findAllUser();
    }
}
